<h1>Dashboard</h1>
<h3>User Information</h3>
<div>Username: <?php echo $user->getUsername(); ?></div>
<div>Password: <?php echo $user->getPassword(); ?></div>
<br />
<a href="<?php echo url_for('@logout') ?>">Logout from User</a>
<hr />

<?php if($sf_user->hasCredential("Google")){ ?>
    <h3>Google Information</h3>
    <a href="<?php echo url_for('@google_analytics') ?>">Google Analytics</a>
    <br /><br />
    <?php echo var_dump($google_profile); ?>
    <br /><br />
    <a href="<?php echo url_for('@logout_from?provider=Google') ?>">Logout from Google</a>
    <hr />
<?php } ?>

<?php if($sf_user->hasCredential("Facebook")){ ?>
    <h3>Facebook Information</h3>
    <a href="<?php echo url_for('@facebook_insights') ?>">Facebook Insights</a>
    <br /><br />
    <?php echo var_dump($facebook_profile); ?>
    <br /><br />
    <a href="<?php echo url_for('@logout_from?provider=Facebook') ?>">Logout from Facebook</a>
    <hr />
<?php } ?>

<?php if($sf_user->hasCredential("Twitter")){ ?>
    <h3>Twitter Information</h3>
    <a href="<?php echo url_for('@twitter') ?>">Twitter API</a>
    <br /><br />
    <?php echo var_dump($twitter_profile); ?>
    <br /><br />
    <a href="<?php echo url_for('@logout_from?provider=Twitter') ?>">Logout from Twitter</a>
    <hr />
<?php } ?>

<a href="<?php echo url_for('@logout_from_all') ?>">Logout from all</a>